package patterns.adapter.object.main;

import patterns.adapter.object.core.Wrapper;
import patterns.adapter.type.core.Source;
import patterns.adapter.type.core.Targetable;

/**
 * 对象的适配器
 * @author ran
 *
 */
public class Test {
	public static void main(String[] args) {
		Targetable targetable = new Wrapper(new Source());
		targetable.method1();
		targetable.method2();
	}
}
